package ml;

public class WeakClassifier {
	public double m_threshold;
	public boolean m_less_is_pos;

	public boolean judge(double feature) {
		return ((feature >= m_threshold) ^ m_less_is_pos);
	}

	public String toString() {
		return Double.toString(m_threshold) + "\t" + Boolean.toString(m_less_is_pos);
	}
}
